﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001233 RID: 4659
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartTimedCocoonStageCsReq : IMessage<StartTimedCocoonStageCsReq>, IMessage, IEquatable<StartTimedCocoonStageCsReq>, IDeepCloneable<StartTimedCocoonStageCsReq>, IBufferMessage
	{
		// Token: 0x17003B19 RID: 15129
		// (get) Token: 0x0600D0FD RID: 53501 RVA: 0x002334CD File Offset: 0x002316CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartTimedCocoonStageCsReq> Parser
		{
			get
			{
				return StartTimedCocoonStageCsReq._parser;
			}
		}

		// Token: 0x17003B1A RID: 15130
		// (get) Token: 0x0600D0FE RID: 53502 RVA: 0x002334D4 File Offset: 0x002316D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartTimedCocoonStageCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003B1B RID: 15131
		// (get) Token: 0x0600D0FF RID: 53503 RVA: 0x002334E6 File Offset: 0x002316E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartTimedCocoonStageCsReq.Descriptor;
			}
		}

		// Token: 0x0600D100 RID: 53504 RVA: 0x002334ED File Offset: 0x002316ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartTimedCocoonStageCsReq()
		{
		}

		// Token: 0x0600D101 RID: 53505 RVA: 0x002334F5 File Offset: 0x002316F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartTimedCocoonStageCsReq(StartTimedCocoonStageCsReq other) : this()
		{
			this.wave_ = other.wave_;
			this.cocoonId_ = other.cocoonId_;
			this.worldLevel_ = other.worldLevel_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D102 RID: 53506 RVA: 0x00233532 File Offset: 0x00231732
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartTimedCocoonStageCsReq Clone()
		{
			return new StartTimedCocoonStageCsReq(this);
		}

		// Token: 0x17003B1C RID: 15132
		// (get) Token: 0x0600D103 RID: 53507 RVA: 0x0023353A File Offset: 0x0023173A
		// (set) Token: 0x0600D104 RID: 53508 RVA: 0x00233542 File Offset: 0x00231742
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Wave
		{
			get
			{
				return this.wave_;
			}
			set
			{
				this.wave_ = value;
			}
		}

		// Token: 0x17003B1D RID: 15133
		// (get) Token: 0x0600D105 RID: 53509 RVA: 0x0023354B File Offset: 0x0023174B
		// (set) Token: 0x0600D106 RID: 53510 RVA: 0x00233553 File Offset: 0x00231753
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CocoonId
		{
			get
			{
				return this.cocoonId_;
			}
			set
			{
				this.cocoonId_ = value;
			}
		}

		// Token: 0x17003B1E RID: 15134
		// (get) Token: 0x0600D107 RID: 53511 RVA: 0x0023355C File Offset: 0x0023175C
		// (set) Token: 0x0600D108 RID: 53512 RVA: 0x00233564 File Offset: 0x00231764
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorldLevel
		{
			get
			{
				return this.worldLevel_;
			}
			set
			{
				this.worldLevel_ = value;
			}
		}

		// Token: 0x0600D109 RID: 53513 RVA: 0x0023356D File Offset: 0x0023176D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartTimedCocoonStageCsReq);
		}

		// Token: 0x0600D10A RID: 53514 RVA: 0x0023357C File Offset: 0x0023177C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartTimedCocoonStageCsReq other)
		{
			return other != null && (other == this || (this.Wave == other.Wave && this.CocoonId == other.CocoonId && this.WorldLevel == other.WorldLevel && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D10B RID: 53515 RVA: 0x002335D8 File Offset: 0x002317D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Wave != 0U)
			{
				num ^= this.Wave.GetHashCode();
			}
			if (this.CocoonId != 0U)
			{
				num ^= this.CocoonId.GetHashCode();
			}
			if (this.WorldLevel != 0U)
			{
				num ^= this.WorldLevel.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D10C RID: 53516 RVA: 0x00233649 File Offset: 0x00231849
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D10D RID: 53517 RVA: 0x00233651 File Offset: 0x00231851
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D10E RID: 53518 RVA: 0x0023365C File Offset: 0x0023185C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Wave != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Wave);
			}
			if (this.CocoonId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.CocoonId);
			}
			if (this.WorldLevel != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.WorldLevel);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D10F RID: 53519 RVA: 0x002336D4 File Offset: 0x002318D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Wave != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Wave);
			}
			if (this.CocoonId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CocoonId);
			}
			if (this.WorldLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorldLevel);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D110 RID: 53520 RVA: 0x00233744 File Offset: 0x00231944
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartTimedCocoonStageCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Wave != 0U)
			{
				this.Wave = other.Wave;
			}
			if (other.CocoonId != 0U)
			{
				this.CocoonId = other.CocoonId;
			}
			if (other.WorldLevel != 0U)
			{
				this.WorldLevel = other.WorldLevel;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D111 RID: 53521 RVA: 0x002337A8 File Offset: 0x002319A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D112 RID: 53522 RVA: 0x002337B4 File Offset: 0x002319B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 80U)
					{
						if (num != 88U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.WorldLevel = input.ReadUInt32();
						}
					}
					else
					{
						this.CocoonId = input.ReadUInt32();
					}
				}
				else
				{
					this.Wave = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040053CF RID: 21455
		private static readonly MessageParser<StartTimedCocoonStageCsReq> _parser = new MessageParser<StartTimedCocoonStageCsReq>(() => new StartTimedCocoonStageCsReq());

		// Token: 0x040053D0 RID: 21456
		private UnknownFieldSet _unknownFields;

		// Token: 0x040053D1 RID: 21457
		public const int WaveFieldNumber = 9;

		// Token: 0x040053D2 RID: 21458
		private uint wave_;

		// Token: 0x040053D3 RID: 21459
		public const int CocoonIdFieldNumber = 10;

		// Token: 0x040053D4 RID: 21460
		private uint cocoonId_;

		// Token: 0x040053D5 RID: 21461
		public const int WorldLevelFieldNumber = 11;

		// Token: 0x040053D6 RID: 21462
		private uint worldLevel_;
	}
}
